<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>腾飞健康管理平台</title>
    <link rel="stylesheet" href="lib/layui/css/layui.css">
</head>
<body>
<table id="permissionList" lay-filter="permissionList"></table>

<script type="text/javascript" src="lib/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(["table", "jquery", "layer"], function () {
        let table = layui.table;
        let $ = layui.jquery;
        let layer = layui.layer;

        table.render({
            elem: "#permissionList",
            id: "permissionList",
            url: "/getPermissions",
            page: false,
            method: "post",
            size: "sm",
            toolbar: false,
            response: {
                countName: "totalCount",
                dataName: "data",
                msgName: "msg",
            },
            request: {
                pageName: "currentPageNum",
                limitName: "pageSize",
            },
            cols: [
                [ //表头
                    {field: 'permissionId', title: 'ID', width: 150, sort: true, fixed: 'left'}
                    , {field: 'permission', title: '权限', width: 200}
                    , {field: 'permissionName', title: '名称' }
                ]
            ]
        });

    });
</script>
</body>
</html>